
public class Edge {
	private Position endpoint1;
	private Position endpoint2;
	private boolean occupied;
	public Edge()
	{
		endpoint1 = new Position();
		endpoint2 = new Position();
		occupied = false;
	}
	public Edge(Position endpoint1, Position endpoint2) {
		this.endpoint1 = endpoint1;
		this.endpoint2 = endpoint2;
		this.occupied = false;
	}
	public Edge(Position endpoint1, Position endpoint2, boolean occupied) {
		this.endpoint1 = endpoint1;
		this.endpoint2 = endpoint2;
		this.occupied = occupied;
	}
	public Position getEndpoint1() {
		return endpoint1;
	}
	public void setEndpoint1(Position endpoint1) {
		this.endpoint1 = endpoint1;
	}
	public Position getEndpoint2() {
		return endpoint2;
	}
	public void setEndpoint2(Position endpoint2) {
		this.endpoint2 = endpoint2;
	}
	public boolean isOccupied() {
		return occupied;
	}
	public void setOccupied(boolean occupied) {
		this.occupied = occupied;
	}
	public String toString()
	{
		return "EDGE: FROM "+endpoint1+" TO "+endpoint2;
	}
	
}
